package com.langsin.blog.util;

import org.junit.Test;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;

public class MsgUtil {
    public static void sendMsgToClient(String msg,HttpServletResponse response){
        PrintWriter pw = null;
        try {
            pw = response.getWriter();
            pw.print(msg);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
